package org.cmg.study.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author CMG
 * @version 1.0
 * @cLassName MainApp4
 * @description
 * @date 2021/8/31 17:08
 **/
public class MainApp4 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
        //ApplicationContext context = new ClassPathXmlApplicationContext("beans1.xml");
        Person person = (Person) context.getBean("person");
        person.man();
    }
}
